package Drink_Decorator_11.Decorators;

import Drink_Decorator_11.Beverage;
import Drink_Decorator_11.BeverageDecorator;

public class MilkDecorator extends BeverageDecorator {
    private Beverage beverage;

    public MilkDecorator(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + " + Milk";
    }

    @Override
    public double cost() {
        return beverage.cost() + 1.50;
    }
}
